package stachfunction;
class Point{
	int x;
	int y;
}
class Swap{
	public void s1(int a , int b) {
		a=a^b;
		b=a^b;
		a=a^b;
		System.out.println("swap:"+a+","+b);
	}
	public void swap(Point p1,Point p2) {
		Point t =p1;
		p1=p2;
		p2=t;
		System.out.println("s2");
		System.out.println("p1 ="+p1.x +","+p1.y);
		System.out.println("p2 ="+p2.x +","+p2.y);
	}
}
public class ParameterDemo {
	public static void main(String[] args) {
		int a = 1,b = 2;
		Swap swap = new Swap();
		swap.s1(a, b);
		System.out.println("main:"+a+","+b);
	}
}
